package com.ficus.road.maintain.core.model.third;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ficus.road.maintain.core.model.Bbox;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DiankeCreateHitRequest {
    @JsonProperty("id")
    @NotEmpty
    private String id;
    //病害类型
    @NotEmpty
    private String type;
    // 病害时间
    @NotNull
    private Long hitTime;
    //经度
    private double lgt = 0;
    //维度
    private double lat = 0;
    // 标段编码
    private String sectionCode;
    //发生路段
    private String roadName;
    private String imageUrl;
    private String imageBase64;
    private String description;
    private Float traCongestionIndex;
    /**
     * 病害详细信息，位置，框
     */
    private List<Bbox> subjects;
}
